package anim.objekti;

import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Point;

/**
 * @author Aleksandar Stancic
 */

public abstract class Objekat {
	protected Point poz = null;
	protected Dimension dim = null;
	protected boolean vid = true;
	
	public boolean getVidljiv() { return vid; }
	public void setVidljiv(boolean v) { vid = v; }
	
	public Point getPozicija() { return poz; }
	public void setPozicija(Point p) { poz = p; }
	
	public abstract void crtaj(Graphics2D g);
	
	public Objekat(Point p, Dimension d)
	{
		poz = p;
		dim = d;
	}
}
